# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

use_modular_headers!

target 'test' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for test
#  pod 'ReactiveSwift', :git => "https://github.com/ReactiveCocoa/ReactiveSwift.git", :tag => "4.0.0"

  pod 'ReactiveCocoa', :git => "https://github.com/ReactiveCocoa/ReactiveCocoa.git", :tag => "7.2.0"
  pod 'ReactiveObjC', :git => "https://github.com/ReactiveCocoa/ReactiveObjC.git", :tag => "3.1.0"
  pod 'ReactiveObjCBridge', :git => "https://github.com/ReactiveCocoa/ReactiveObjCBridge.git", :tag => "3.1.0"
#  pod 'ReactiveObjC'
#  pod 'ReactiveObjCBridge'
end


post_install do |installer|
    
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
  
#            config.build_settings['SWIFT_SWIFT3_OBJC_INFERENCE'] = 'Default'
            config.build_settings['SWIFT_VERSION'] = '4.1'


        end
    end
    
    # 解决pod_project没有自动进行该设置，xcode提示警告的问题
#    installer.pods_project.build_configurations.each do |config|
#        if config.name == 'Release'
#            config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Owholemodule'
#        end
#    end
end
